//
//  MediaInfoList.h
//  MediaInfoGUI
//
//  Created by Olivier Larivain on 2/13/10.
//  Copyright 2010 __MyCompanyName__. All rights reserved.
//

#import <Cocoa/Cocoa.h>

typedef enum OpenOptionEnum
{
  None      =0x00,
  NoRecursive  =0x01,  ///< Do not browse folders recursively
  CloseAll     =0x02,  ///< Close all files before open
  Max          =0x04
} OpenOption;

@interface MediaInfoList : NSObject

- (int) open:(NSString*) files option:(OpenOption) option;

- (NSString *) inform: (int) fileIndex;

- (void) setInfoLevel: (NSString*) level;

- (NSString*) getGeneralInfo:(int) fileIndex streamId:(int) streamId parameter:(NSString*) parameter;
- (NSString*) getVideoInfo:(int) fileIndex streamId:(int) streamId parameter:(NSString*) parameter;
- (NSString*) getAudioInfo:(int) fileIndex streamId:(int) streamId parameter:(NSString*) parameter;
- (NSString*) getTextInfo:(int) fileIndex streamId:(int) streamId parameter:(NSString*) parameter;

-(NSString*) getVideoCodecInfo:(int) fileIndex;
-(NSString*) getAudioCodecInfo:(int) fileIndex;
-(NSString*) getTextCodecInfo:(int) fileIndex;
- (NSString*) getGeneralMetaData:(int) fileIndex;


- (int) generalStreams: (int) fileIndex;
- (int) videoStreams: (int) fileIndex;
- (int) audioStreams: (int) fileIndex;
- (int) textStreams: (int) fileIndex;

-(void) close;

@end
